package cn.itcast.bos.dao.base;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.base.Courier;
import cn.itcast.bos.domain.base.FixedArea;

public interface CourierDao extends JpaRepository<Courier, Integer>,JpaSpecificationExecutor<Courier>{
	
	
	@Query(value="update Courier set deltag='0' where id=?")
	@Modifying
	public void courierDel(int id);
	
	@Query(value="update Courier set deltag=null where id=?")
	@Modifying
	public void courierRes(int id);

	public Courier findById(Integer courierId);
}
